Private['_respawn','_team'];

_team = _this select 0;
_respawn = _this select 1;

if (isNull _team) exitWith {};

Call Compile Format ["%1Respawn = _respawn; publicVariable '%1Respawn';",_team getVariable 'identification'];